package com.eleclab.vue;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import java.io.File;

import java.io.IOException;

import javax.imageio.ImageIO;

import javax.swing.ImageIcon;
import javax.swing.JButton;

public class Bouton extends JButton{
    private String nom;
    private ImageIcon icone; 
    
    public Bouton(String aNom, String adImage) {
        
        super(aNom, new ImageIcon(adImage));
        this.icone = new ImageIcon(adImage);
        this.setPreferredSize(new Dimension(this.icone.getIconWidth(), this.icone.getIconWidth()));
        this.setText(null);
        this.setBackground(null);
        this.setBorder(null);
        this.setFocusable(false);
    }
}
